package com.huoshan.im.server.enums;

/**
 * 错误码
 *
 * @author 火山九日
 * @since: 2020-07-10
 **/
public enum ErrorCode {

    TO火山九日_ERROR(-1000, "To火山九日错误"),
    TO火山九日_EXPIRED(-1001, "To火山九日过期");
    /**
     * 错误码
     */
    private int code;

    /**
     * 错误信息
     */
    private String msg;

    ErrorCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "{\"code\":" + this.code + ", \"msg\":\"" + msg + "\"}";
    }

}
